import request from "@/utils/request";

export function updateReceipt(data) {
  return request({
    url: '/fm/rm/edit',
    method: 'put',
    data: data
  })
}


export function addReceipt(data) {
  return request({
    url: '/fm/rm/add',
    method: 'post',
    data: data
  })
}


export function delReceipt(id) {
  return request({
    url: '/fm/rm/del/'+id,
    method: 'delete'
  })
}


export function getReceipt(id) {
  return request({
    url: '/fm/rm/get/'+id,
    method: 'get'
  })
}


export function listReceipt(query) {
  return request({
    url: '/fm/rm/list',
    method: 'get',
    params: query
  })
}
